package com.cloud.business.feign;

import com.cloud.business.constant.FeignConstant;
import com.cloud.business.dto.SaveDTO;
import com.cloud.business.dto.SelectDTO;
import com.cloud.business.vo.ResultVO;
import com.cloud.business.vo.TableResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = FeignConstant.DEMO_CLIENT)
public interface DemoClientFeign {

    @PostMapping("/demo/client/list")
    TableResultVO test(@RequestBody SelectDTO dto);

    @GetMapping("/demo/client/feign")
    Integer feign();

    @PostMapping("/demo/client/save1")
    ResultVO save(@RequestBody SaveDTO saveDTO);
}
